import request from '@/utils/request'

// 团购规则数据获取
export function guizegetdata(params) {
    return request({
      url: '/admin/groupon/list',
      method: 'get',
      params
    })
  }
  // 团购规则添加接口
  export function guizeadd(data) {
    return request({
      url: '/admin/groupon/create',
      method: 'post',
      data
    })
  }
  // 团购规则更新
  export function guizeupdata(data) {
    return request({
      url: '/admin/groupon/create',
      method: 'post',
      data
    })
  }
  // 团购规则删除
  export function guizedelete(data) {
    return request({
      url: '/admin/groupon/delete',
      method: 'post',
      data
    })
  }